forum

home / developersection / forums / i want to store the button text which called the window form

I want to store the button text which called the window form

Anonymous User 1653 04-Sep-2013

On form 1 I want to store the name of the button which called this form so that i can execute some code depending upon the button click

button bt1=new button();
button bt2=new button();
private void b1_click(object sender, eventargs e)
{
    form1 f1=new form1();
    f1.show();
}
private void b2_click(object sender, eventargs e)
{
    form1 f1=new form1();
    f1.show();
}

c# c# 
Updated on 04-Sep-2013

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By